package org.xg.domain;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "SYS_R_ROLE2AUTHORITY")
public class Role2AuthorityVO extends IdEntity {
	private RoleVO role ;
	private AuthorityVO auth ;
	
	public Role2AuthorityVO(){}
	
	@ManyToOne
	@JoinColumn(name="ROLE_ID")
	public RoleVO getRole() {
		return role;
	}
	
	public void setRole(RoleVO role) {
		this.role = role;
	}
	
	@ManyToOne
	@JoinColumn(name="AUTHORITY_ID")
	public AuthorityVO getAuth() {
		return auth;
	}
	
	public void setAuth(AuthorityVO auth) {
		this.auth = auth;
	}
}
